/**
 * 
 */
package wfta.common;

import java.io.Serializable;
import java.util.Vector;

/**
 * @author Michele Bortolato
 * Represent a Category and the Items pertaining to It
 */
public class Section implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/**
	 * Name Of the category
	 */
	private String name;
	/**
	 * List of Items of thi Category
	 */
	private Vector<Item> items;
	
	/**Constructor, build an empty list of items
	 * @param n Name the Category
	 */
	public Section(String n){setName(n);setItems(new Vector<Item>());}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setItems(Vector<Item> items) {
		this.items = items;
	}

	public Vector<Item> getItems() {
		return items;
	}

	/**Add a new Item to the Category
	 * @param tmpItem The new Item
	 */
	public void add(Item tmpItem) {
		items.add(tmpItem);
	}

}
